package cn.wolfocde.luowowo.repository;

import cn.wolfcode.luowowo.search.template.TravelTemplate;
import cn.wolfcode.luowowo.search.template.UserInfoTemplate;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 封装的工具类,作用等于mapper
 */
@Repository
public interface TravelTemplateRepository extends ElasticsearchRepository<TravelTemplate, Long> {
    /**
     * 目的地名字查询游记集合
     * @param name
     * @return
     */
    List<TravelTemplate> findByDestName(String name);
}

